package com.itheima.health.dao;


import com.github.pagehelper.Page;
import com.itheima.health.pojo.Order;
import com.itheima.health.pojo.Setmeal;
import com.itheima.health.pojo.UserOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 提交预约信息
 */

@Mapper
public interface OrderDao {

    /**
     * 添加预约信息
     *
     * @param userOrder
     */
    void addOrder(UserOrder userOrder);

    Integer getLastInsertId();

    void add(Order order);

    /**
     * 根据orderId查询预订信息
     *
     * @param id
     * @return
     */
    @Select("select * from t_order where id=#{id}")
    Order findById(Integer id);
}
